package blog.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import blog.entity.Notice;
import blog.mapper.NoticeMapper;
import blog.service.NoticeService;

@Service
public class NoticeServiceImpl implements NoticeService{
	
	@Resource
	NoticeMapper noticeMapper;

	@Override
	public List<Notice> findAll() {
		return noticeMapper.findAll();
	}

	@Override
	public void deleteNoticeById(Integer articleId) {
		noticeMapper.deleteNoticeById(articleId) ;
		
	}

	@Override
	public void add(Notice notice) {
		noticeMapper.add(notice);
		
	}
}
